package fei.zhou.springboot4.demo5;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * 描述该类- JPA
 *
 * @author zhoufei
 * @class: Test
 * @date 2021/1/20 14:53
 * @Verson 1.0 -2021/1/20 14:53
 * @see
 */
public class Test {
    
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ConditionConifg.class);


        SysService sysService = context.getBean(SysService.class);

        String sysName = context.getEnvironment().getProperty("os.name");
        System.out.println("当前的操作系统是："+sysName);

        System.out.println("------------------------------------");
        sysService.show();
       
    }
    
}